package me.blog.whiteday910.smartscore;

import me.blog.whiteday910.smartscore.Main.MainActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;

public class IntroActivity extends Activity
{

	Animation introTextAnimation;
	TextView introTextView;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_intro);
		introTextView = (TextView)findViewById(R.id.introTextView);
		introTextAnimation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.intro_animation);

		introTextView.startAnimation(introTextAnimation);
		
		Handler mHandler = new Handler();
		mHandler.postDelayed(new Runnable()
		{

			@Override
			public void run()
			{
				Intent intent = new Intent(IntroActivity.this, MainActivity.class);
				startActivity(intent);

				IntroActivity.this.finish();
			}
		}, 2000);

	}

}
